import { Navigate  } from 'react-router-dom'
import Home from '@/pages/home/index'
import Setting from '@/pages/setting/index'
 
const router = [
    {
        path: "/",
        element: <Home />,
        children: [
            // 二级路由...
       ]
  },
  {
        path: "/setting",
        element: <Setting />,
        children: [
            // 二级路由...
       ]
    },
    // 配置路由重定向 可配置404页面
    {
        path: '*',
        element: <Navigate to='/' />
    }
]
 
export default router